from django import forms
from .models import TimeCapsule

class TimeCapsuleForm(forms.ModelForm):
    class Meta:
        model = TimeCapsule
        fields = ['title', 'message', 'opening_date', 'is_public']
        widgets = {
            'opening_date': forms.DateTimeInput(attrs={'type': 'datetime-local'}),
        }